package com.jianguozh.difs.support.service.sys.service.impl;

import com.jianguozh.difs.support.service.sys.entity.Res;
import com.jianguozh.difs.support.service.sys.mapper.ResMapper;
import com.jianguozh.difs.support.service.sys.service.IResService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;

/**
 * <p>
 * 资源 服务实现类
 * </p>
 *
 * @author hanrs
 * @since 2022-03-17
 */
@Service
public class ResServiceImpl extends ServiceImpl<ResMapper, Res> implements IResService {

    @Override
    @Transactional
    public boolean removeById(Serializable id) {
        getBaseMapper().deleteResRoles(id);
        return super.removeById(id);
    }
}
